#pragma once

#include <QWidget>
#include "../pipeline/pipeline.h"
#include "pipelinedetailwid.h"

class TaskProcess;

QT_BEGIN_NAMESPACE
namespace Ui { class PipelineInfoWid; };
QT_END_NAMESPACE

class PipelineInfoWid : public QWidget
{
	Q_OBJECT

public:
	PipelineInfoWid(QWidget* parent = nullptr);
	~PipelineInfoWid();

	void Init(TaskProcess* pipeM, Pipeline* pipe);
	void ShowTaskInfo();
	void UpdateTaskInfo();

private slots:
	void on_pushButton_clicked();
private:


	void SetPipelineState();
private:
	Ui::PipelineInfoWid* ui;
	TaskProcess* m_pipeM = nullptr;
	Pipeline* m_pipe = nullptr;
	PipelineDetailWid* m_detail = nullptr;
};
